.

Answer for - 5 Hats

#1 is wearing a white hat. If he were wearing a black hat and # 2 was wearing a black hat, #3 would have known that he had the white hat. If number #2 saw a black hat on #1, then he would have know that he, himself, had a white hat (since #3 didn't know his own hat colour).
Submitted  6/1/2000 8:48:44 PM